<?php
	header("Expires: -1");
	header("Content-type: text/html; charset=iso-8859-1");
	require_once "../db/mysql/tbr.php";
	require_once "../classes/forms.cls.php";
	require_once "../conf/config.php";
	
	
	/****  CONNECTION TO RDBMS SERVER ****/	
	require_once "../db/mysql/tbr.ini.php";
	/**************************************/
	
	$form = new svq_form();
	$formTable = 'svq_forms';
	$lineTable = 'svq_line';
	$formLineTable 	= 'svq_forms_line';
	$formId    		= $_REQUEST['dbfid'];
	$formSid        = $_REQUEST['dbfsid'];
	$complUrl  		= $form->getComplementaryUrl($base,$formTable,$lineTable,$formLineTable,$formId,$formSid);
	$formRebuilded  = $form->rebuildFormById($base,$formTable,$lineTable,$formLineTable,$formId);
	$___ = $form->getFormById($base,$formTable,$lineTable,$formLineTable,$formId);
	if(is_array($___)){
		foreach($___ as $___a){
			echo trim(stripslashes($___a['title'])).'-#-'.trim(stripslashes($___a['desc'])).'-#-'.$complUrl.'-#-'.$formRebuilded;		
			return;
		}
	}else echo -1;
?>